package com.huixin.zhang.web.controller;


import com.huixin.zhang.persistence.entity.BaseAccountLogs;
import com.huixin.zhang.service.BaseAccountLogsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 登录日志(BaseAccountLogs)表控制层
 *
 * @author makejava
 * @since 2021-03-04 19:41:50
 */
@RestController
@RequestMapping("baseAccountLogs")
public class BaseAccountLogsController {
    /**
     * 服务对象
     */
    @Resource
    private BaseAccountLogsService baseAccountLogsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public BaseAccountLogs selectOne(Long id) {
        return this.baseAccountLogsService.queryById(id);
    }

}
